package com.tem.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工作流定义表
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("define")
@ApiModel(value="Define对象", description="工作流定义表")
public class Define implements Serializable {
    private static final long serialVersionUID=8990345343421L;
    @ApiModelProperty(value = "工作流定义表")
    @TableId(value = "define_id", type = IdType.AUTO)
    private Long defineId;

    @ApiModelProperty(value = "企业分店")
    @TableField("sys_branch_office_id")
    private Long sysBranchOfficeId;

    @ApiModelProperty(value = "系统")
    @TableField("system_level_id")
    private Long systemLevelId;

    @ApiModelProperty(value = "工作流名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "关联表名")
    @TableField("ref_table")
    private String refTable;

    @ApiModelProperty(value = "排序号 降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "备注")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
